﻿using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Bson;
using Colorful.Models;
using Colorful.Database;

namespace Colorful.CMS
{
    #region DbContext
    public partial class DbContext : Colorful.CMS.Core.DbContext
    {
        private IMongoDatabase _db;

        #region 初始化
        public DbContext(string server, string username, string password, string dbName)
            : base(server, username, password, dbName)
        {
            _db = this.Database;
        }
        public DbContext(string connStr, string dbName)
            :base(connStr, dbName)
        {
            _db = this.Database;
        }
        #endregion
    }
    #endregion
}
